package com.juyu.miliao.api.dao.mysql;

import com.juyu.miliao.api.domain.UserLikeLabel;
import com.juyu.miliao.common.dataSource.tool.operate.Operate;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author jh
 * 2018/10/8
 */
@Repository
public class UserLikeLabelDao {

    @Resource
    private SqlSession sqlSession;

    @Operate("strategy('byUserId', #userId)")
    public int saveUserLikeLabel(UserLikeLabel userLikeLabel, Long userId) {
        return sqlSession.insert("saveUserLikeLabel", userLikeLabel);
    }
}
